package com.guochu.common.infrastructure;

import com.guochu.org.entity.User;
import com.guochu.org.entity.Login;

import java.io.Serializable;

/**
 * @Author: luc
 * @Date: 2019-9-25 14:50
 */
public class Identity implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 登录账号信息
     */
    private Login login;

    /**
     * 登录用户信息
     */
    private User user;

    public Identity() {
    }

    public Identity(Login login, User user) {
        //根据Login信息获取登录用户全部信息
        this.login = login;
        this.user = user;
    }

    /**
     * 登录名
     */
    public Login getLogin() {
        return login;
    }

    public void setLogin(Login login) {
        this.login = login;
    }

    /**
     * 用户唯一编号
     */
    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }
}